package com.fms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fms.dto.ProfileUpdateQuery;
import com.fms.dto.SysUserAdjustQuery;
import com.fms.dto.SysUserImageUpdateDto;
import com.fms.entity.SysUser;
import com.fms.result.ResultData;

import java.util.List;

public interface SysUserService extends IService<SysUser> {
    SysUser getUserInfo(String id);
    String updateProfile(ProfileUpdateQuery profileUpdateQuery);

    List<SysUser> getAllUsers();

    String adjustSysUser(SysUserAdjustQuery sysUserAdjustQuery);

    String addNewSysUser(SysUser sysUser);

    String deleteSysUser(SysUser[] sysUsers);

    String updatePassword(String username,String oldPassword, String newPassword);

    ResultData alterSysUserPassword(SysUser sysUser);

    ResultData updateImg(SysUserImageUpdateDto sysUserImageUpdateDto);
}
